package com.sunny.myproject.buy.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.produce.entity.Mrp;
import com.sunny.myproject.system.entity.IdEntity;

/**
 * 采购计划
 * @author sunny_nie
 *
 */
@Entity
@Table(name="tb_buyPlan")
public class BuyPlan extends IdEntity{

	private Mrp mrp;

	//采购的数量
	private double amount;
	private String code;
	private String buy_from;
	private String buy_name;
	private Date buy_date;
	private Date make_date;
	private String status;
	
	
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	@ManyToOne(targetEntity=Mrp.class)
	public Mrp getMrp() {
		return mrp;
	}
	public void setMrp(Mrp mrp) {
		this.mrp = mrp;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getBuy_from() {
		return buy_from;
	}
	public void setBuy_from(String buy_from) {
		this.buy_from = buy_from;
	}
	public String getBuy_name() {
		return buy_name;
	}
	public void setBuy_name(String buy_name) {
		this.buy_name = buy_name;
	}
	public Date getBuy_date() {
		return buy_date;
	}
	public void setBuy_date(Date buy_date) {
		this.buy_date = buy_date;
	}
	public Date getMake_date() {
		return make_date;
	}
	public void setMake_date(Date make_date) {
		this.make_date = make_date;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	
}
